/*请求地址*/
function server(app,session){
    console.log('http request paths were loaded....');
    //测试
    app.get('/test',function(req,res){
        console.log("test request111123123");
        require('./dor/test/0').run(req,res);
    });
    app.get('/test/1',function(req,res){
        console.log("test1 request123");
        require('./dor/test/1').run(req,res);
    });
    app.get('/test/2',function(req,res){
        console.log("test2 request");
        require('./dor/test/2').run(req,res);
    });
    //users用户相关
    app.get('/users/find',function(req,res){
        console.log("查找用户");
        require('./dor/users/find').run(req,res);
    });
    //通用请求
    app.post('/register',function(req,res){
        console.log("用户注册");
        require('./dor/register').run(req,res);
    });
    app.post('/login',function(req,res){
        console.log("用户登录");
        require('./dor/login').run(req,res,app,session);
    });
}
exports.server = server;